package com.woniuxy.hospital.shiro;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@ConfigurationProperties(prefix = "audience")
@Component
public class Audience {//读取属性的类//用于解析JWT
    //这个类被Spring加载之后，创建实例，该实例中的属性值来自于配置的properties中对应的属性值
    private String clientId;
    private String base64Secret;
    private String name;
    private int expiresSecond;
}
